package extends03;


public class Test {
    public static void main(String[] args) {
        Person person = new Student();
        person.eat();
        person = new Teacher();
        person.eat();
    }
}